<%@ page import="com.erpanderp.pr.model.entity.ValueHelp" %>



<div class="fieldcontain ${hasErrors(bean: valueHelpInstance, field: 'valueHelp', 'error')} ">
	<label for="valueHelp">
		<g:message code="valueHelp.valueHelp.label" default="Value Help" />
		
	</label>
	<g:select name="valueHelp" from="${valueHelpInstance.constraints.valueHelp.inList}" value="${valueHelpInstance?.valueHelp}" valueMessagePrefix="valueHelp.valueHelp" noSelection="['': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: valueHelpInstance, field: 'displayName', 'error')} ">
	<label for="displayName">
		<g:message code="valueHelp.displayName.label" default="Display Name" />
		
	</label>
	<g:textField name="displayName" value="${valueHelpInstance?.displayName}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: valueHelpInstance, field: 'description', 'error')} ">
	<label for="description">
		<g:message code="valueHelp.description.label" default="Description" />
		
	</label>
	<g:textField name="description" value="${valueHelpInstance?.description}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: valueHelpInstance, field: 'status', 'error')} ">
	<label for="status">
		<g:message code="valueHelp.status.label" default="Status" />
		
	</label>
	<g:select name="status" from="${valueHelpInstance.constraints.status.inList}" value="${valueHelpInstance?.status}" valueMessagePrefix="valueHelp.status" noSelection="['': '']"/>
</div>

<div class="fieldcontain ${hasErrors(bean: valueHelpInstance, field: 'createdBy', 'error')} ">
	<label for="createdBy">
		<g:message code="valueHelp.createdBy.label" default="Created By" />
		
	</label>
	<g:textField name="createdBy" value="${valueHelpInstance?.createdBy}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: valueHelpInstance, field: 'lastUpdatedBy', 'error')} ">
	<label for="lastUpdatedBy">
		<g:message code="valueHelp.lastUpdatedBy.label" default="Last Updated By" />
		
	</label>
	<g:textField name="lastUpdatedBy" value="${valueHelpInstance?.lastUpdatedBy}"/>
</div>

<div class="fieldcontain ${hasErrors(bean: valueHelpInstance, field: 'valueHelpValues', 'error')} ">
	<label for="valueHelpValues">
		<g:message code="valueHelp.valueHelpValues.label" default="Value Help Values" />
		
	</label>
	
<ul class="one-to-many">
<g:each in="${valueHelpInstance?.valueHelpValues?}" var="v">
    <li><g:link controller="valueHelpValue" action="show" id="${v.id}">${v?.encodeAsHTML()}</g:link></li>
</g:each>
<li class="add">
<g:link controller="valueHelpValue" action="create" params="['valueHelp.id': valueHelpInstance?.id]">${message(code: 'default.add.label', args: [message(code: 'valueHelpValue.label', default: 'ValueHelpValue')])}</g:link>
</li>
</ul>

</div>

